﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="editarPrestador.aspx.cs" Inherits="Worcamento.Prestador.Editar.editarPrestador" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="HeadContent" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="MainContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="page-wrapper">
		<div id="main-wrapper">
			<div id="main-content">
				<div class="title title-spacing">
					<h2>Prestadores</h2>
                    Prestadores de Serviços.
				</div>
                <div style="height:30px;">
                    <asp:LinkButton ID="lnk" CssClass="btn ui-state-default ui-corner-all" 
                                        runat="server" onclick="lnk_Click" ><span class="ui-icon ui-icon-search"></span>Voltar a pesquisa</asp:LinkButton>
                </div>
                <div class="response-msg success ui-corner-all" runat="server" id="divMsnPesquisaSucesso" visible="false">
					<span>Sucesso!</span>
					Informações salvas com sucesso.
				</div>
                <div class="response-msg error ui-corner-all" runat="server" id="divMsnPesquisaAtencao" visible="false">
					<span>Atenção!</span>
					Ocorreu algum erro ao gravar as informações.
				</div>
                <div class="portlet ui-widget ui-widget-content ui-helper-clearfix ui-corner-all form-container">
					<div class="portlet-header ui-widget-header">Editar</div>
					<div class="portlet-content">
					    <ul>
						    <li>
							    <label  class="desc">
								    Nome Fantasia*
							    </label>
							    <div>
                                    <asp:HiddenField ID="hdfCoPrestador" runat="server" />
                                    <asp:TextBox ID="txtNoFantasia" MaxLength="255" CssClass="field text small" runat="server" Text=""></asp:TextBox>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblNoFantasiaObrigatorio" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
                                <label  class="desc">
								    UF*
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlUf" runat="server" CssClass="field" 
                                        AutoPostBack="true" onselectedindexchanged="ddlUf_SelectedIndexChanged"
                                        DataTextField="NO_UF" DataValueField="CO_UF">
                                    </asp:DropDownList>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblCoUfObrigatorio" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
                                <label class="desc">
                                    Cidade*
                                </label>
                                <div>
                                    <asp:DropDownList ID="ddlCidade" runat="server" Enabled="false"
                                     DataTextField="NO_CIDADE" DataValueField="CO_CIDADE">
                                    </asp:DropDownList>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblCoCidadeObrigatorio" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    CPF/CNPJ
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlCfpCnpj" runat="server" CssClass="field" 
                                        onselectedindexchanged="ddlCfpCnpj_SelectedIndexChanged" AutoPostBack="true">
                                        <asp:ListItem Text="CPF" Value="1"/>
                                        <asp:ListItem Text="CNPJ" Value="2"/>
                                    </asp:DropDownList>
                                   <asp:TextBox ID="txtCpfCnpj" Width="90px" CssClass="field text small" runat="server" Text=""></asp:TextBox>
                                    <asp:MaskedEditExtender ID="mask_txtCpfCnpj" runat="server"
                                        MaskType="Number" TargetControlID="txtCpfCnpj"
                                        Mask="999,999,999-99" AutoComplete="false" InputDirection="RightToLeft" ClearMaskOnLostFocus="false">
                                    </asp:MaskedEditExtender>
							    </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblNrCfpCnpjObrigatorio" ForeColor="Red" />
                                </div>
						    </li>
                            <li>
                                <label  class="desc">
								    Status
							    </label>
                                <div>
                                    <asp:DropDownList ID="ddlStatus" runat="server" CssClass="field">
                                        <asp:ListItem Text="Ativo" Value="1"/>
                                        <asp:ListItem Text="Inativo" Value="2"/>
                                    </asp:DropDownList>
							    </div>
						    </li>
                            <li>
                                <label  class="desc">
								    Email Contato
							    </label>
                                <div>
                                    <asp:TextBox ID="txtEmailContato" CssClass="field text small" runat="server"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDsEmailContatoObrigatorio" ForeColor="Red"  />
                                </div>
                            </li>
                            
                            <li>
                                <label  class="desc">
								    Email Responsável 
							    </label>
                                <div>
                                    <asp:TextBox ID="txtEmailResponsavel" CssClass="field text small" runat="server"></asp:TextBox>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDsEmailRespObrigatorio" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    Tel. Contato
							    </label>
                                <div>
                                    <asp:TextBox ID="txtTelContato" CssClass="field text small" runat="server"  Width="83px"></asp:TextBox>
                                    <asp:MaskedEditExtender ID="mask_txtTelContato" MaskType="Number" TargetControlID="txtTelContato"
                                     Mask="(99)9999-9999" AutoComplete="false" InputDirection="RightToLeft" ClearMaskOnLostFocus="false" runat="server">
                                    </asp:MaskedEditExtender>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDsTelContato" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    Tel. Responsável
							    </label>
                                <div>
                                    <asp:TextBox ID="txtTelResponsavel" CssClass="field text small" runat="server"  Width="83px"></asp:TextBox>
                                    <asp:MaskedEditExtender ID="mask_txtTelResponsavel" MaskType="Number" TargetControlID="txtTelResponsavel"
                                     Mask="(99)9999-9999" AutoComplete="false" InputDirection="RightToLeft" ClearMaskOnLostFocus="false" runat="server">
                                    </asp:MaskedEditExtender>
                                </div>
                                <div>
                                    <asp:Label Text="" runat="server" ID="lblDsTelResp" ForeColor="Red" />
                                </div>
                            </li>
                            <li>
                                <label class="desc">
								    Data de Cadastro<br />  
							    </label>
                                <div>
                                    <b><asp:Label ID="lblDtInclusao" runat="server" Text="" /></b>
                                </div>
                            </li>
                            <li>
                                <label  class="desc">
								    Data de Alteração<br />
							    </label>
                                <div>
                                    <b><asp:Label ID="lblDtAlteracao" runat="server" Text="" /></b>
                                </div>
                            </li>
                            <li class="buttons">
                                <div>
				                    <asp:LinkButton ID="lkbEditar" CssClass="btn ui-state-default ui-corner-all" 
                                        runat="server" onclick="lkbEditar_Click" ><span class="ui-icon ui-icon-search"></span>Editar</asp:LinkButton>
			                    </div>
							</li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
